package com.smart.five.ioc.bean.quote;

import com.smart.five.ioc.bean.extend.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author junrui.wang
 * @create 2018/6/6
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/smart/five/ioc/bean/quote/beans.xml");
        Boss boss1 = (Boss) ac.getBean("boss1");
        System.out.println(boss1.getCarId());
        Boss boss2 = (Boss) ac.getBean("boss2");
        System.out.println(boss2.getCarId());

    }
}
